package action;

import java.util.Iterator;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.hibernate.Session;

import bo.HibernateSessionFactory;

import po.User;
import po.UserDAO;



public class CQM_LogoutAction {

		public String execute(){
			HttpServletRequest request = ServletActionContext.getRequest();
			request.getSession().invalidate();
			
			Session session = HibernateSessionFactory.getSession();
			session.close();
				
			return "logout";
		
			
			
			
		}


}
